<cpanel include="../../config.php">

<?


/***************************************************************************
 *                                 error_pages_edit.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['edit_error_page'];
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'domains/error_pages_edit.tpl')
);

$error_page = <<<EOFpacman
<cpanel Fileman="fmpushfile($FORM{'dir'},$FORM{'file'})">
EOFpacman;

$s_hidden_inputs = "<input type=hidden name=file value=\"".$HTTP_GET_VARS['file']."\"><input type=hidden name=dir value=\"".$HTTP_GET_VARS['dir']."\">";

$template->assign_vars(array(
	'FILE' => $HTTP_GET_VARS['file'],
	'ERROR_PAGE_CONTENT' => $error_page,
	'U_ACTION' => 'error_pages_edit_done.php',
	'S_HIDDEN_INPUTS' => $s_hidden_inputs,
	
	'L_ERROR_PAGES' => $lang['error_pages'],
	'L_EDIT_ERROR_PAGE' => $lang['edit_error_page'],
	'L_EDIT_INTRO' => sprintf($lang['error_page_edit_intro'], $_GET['file']),
	'L_SAVE' => $lang['save_error_page'],
	'L_VARIABLES' => $lang['variables'],
	'L_VARIABLES_DESC' => $lang['error_page_edit_variables'],
	'L_REFERRING_URL' => $lang['referring_url'],
	'L_VISITORS_IP' => $lang['visitors_ip'],
	'L_REQUESTED_URL' => $lang['requested_url'],
	'L_SERVER_NAME' => $lang['server_name'],
	'L_VISITORS_BROWSER' => $lang['visitors_browser'],
	'L_REDIRECT_STATUS' => $lang['redirect_status'],
	)
);





//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>